package com.xxiongb.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.xxiongb.business.bean.BaseMessage;
import com.xxiongb.business.bean.User;
import com.xxiongb.business.constant.RoleConstants;

@RestController
public class UserCotroller {
	@Autowired 
	MongoTemplate mongoOps;
	
	
	@RequestMapping(value=RoleConstants.ROLE_USER_PUBLIC_CONTROLLER + "check_email",
			consumes="application/json",
	        produces="application/json")
	@ResponseBody
	public BaseMessage<?> checkEmailValid(String email){
		return null;
	}
	
	
	@RequestMapping(value=RoleConstants.ROLE_USER_PUBLIC_CONTROLLER + "regster_user",
			consumes="application/json",
	        produces="application/json")
	@ResponseBody
	public BaseMessage<?> regsterUser(User user){
		return null;
	}
	
	@RequestMapping(value=RoleConstants.ROLE_USER_PUBLIC_CONTROLLER + "update_base_user")
	public BaseMessage<?> updateBaseUser(User user){
		return null;
	}
	
}
